.i-frame {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
  transition: opacity ease-in-out 0.5s;
  opacity: 0;
  background: #2a2f39;
  font-weight: 500;
  font-size: 5vw;
  text-align: center;
  padding-top: 24vh;

  &__content {
    border: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
  }

  &__close {
    width: 5vw;
    position: fixed;
    top: 3vh;
    right: 3.5vw;
    z-index: 51;
  }
}

.control {
  margin-top: 5vh;
  display: block;
  overflow: visible;

  &__heading {
    display: block;
    margin-top: 4vh;
    font-size: 3vw;
    opacity: 0.5;
    font-weight: 400;
  }

  &__XY {
    display: block;
    width: 45vw;
    height: 60vh;
    text-align: center;
    float: left;
    overflow: visible;

    &-wrapper {
      position: relative;
      width: 35vw;
      height: 50vh;
      margin-left: 5vw;
      font-size: 20vh;
      overflow: visible;
    }
  }

  &__Z {
    display: block;
    width: 19vw;
    height: 60vh;
    text-align: center;
    float: left;
    overflow: visible;

    &-wrapper {
      position: relative;
      width: 15vw;
      height: 50vh;
      margin-left: 5vw;
      font-size: 20vh;
      overflow: visible;
    }
  }

  &__icon {
    font-size: 15vw;
    position: absolute;
    padding: 0 1.7vw;
    opacity: 0.9;

    &-1 {
      top: -8.5vh;
      left: 11.3vw;
    }

    &-2 {
      top: 10vh;
      left: 0.5vw;
    }

    &-3 {
      top: 10vh;
      right: 0.3vh;
    }

    &-4 {
      top: 30vh;
      left: 11.3vw;
    }

    &-5 {
      top: -8vh;
      left: -1.8vw;
    }

    &-6 {
      top: 30vh;
      left: -1.8vw;
    }
  }

  &__distance {
    width: 50vw;
    margin-left: 12vw;
    margin-top: 4.5vh;
    display: inline-block;
    border-collapse: separate;

    &-field {
      font-size: 2.8vw;
      width: 10vw;
      text-align: center;
      border: 0.25vw solid #f5f6fa;
      border-right: 0.175vw solid #f5f6fa;
      border-left: 0.175vw solid #f5f6fa;
      padding: 1vh 0.7vw;
      opacity: 0.5;
      background-color: transparent;
      transition: all 0.3s ease-in-out;
      transition-property: opacity, background;

      &-active {
        opacity: 0.9;
        background-color: rgba(245, 246, 250, 0.2);
      }
    }

    &-field:first-child {
      border-top-left-radius: 1vw;
      border-bottom-left-radius: 1vw;
      border-left: 0.25vw solid #f5f6fa;
    }

    &-field:last-child {
      border-top-right-radius: 1vw;
      border-bottom-right-radius: 1vw;
      border-right: 0.25vw solid #f5f6fa;
    }
  }

  &__custom {
    height: 75vh;
    width: 30vw;
    display: block;
    float: right;

    &-action {
      display: block;
      float: left;
      width: 10vw;
      height: 10vw;
      border: 0.8vw solid #f5f6fa;
      border-radius: 1.5vw;
      text-align: center;
      opacity: 0.9;
      margin: 0 1.4vw 3vh;

      &-icon {
        font-size: 5.5vw;
        vertical-align: -3vw;
      }
    }
  }
}

.top-bar__next-icon {
  vertical-align: -3vh;
}

.confirm {
  position: fixed;
  top: 22vh;
  width: 64vw;
  margin-left: 15vw;
  background-color: #5a6675;
  border-radius: 2vw;
  padding: 3vh 3vw;
  z-index: 10;

  &__sub-heading {
    font-size: 2.4vw;
    padding-top: 2vh;
  }

  &__gcode {
    font-size: 2.2vw;
    padding: 2vh 1.5vw;
    font-family: "Cousine", monospace;
  }

  &__icon {
    height: 15vh;
    margin-top: 5vh;
    margin-left: 15vw;
  }

  &__wrapper {
    position: fixed;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
  }
}
